package com.feng.zhihao.demo.springbatch.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BatchTaskHisExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BatchTaskHisExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTaskHisIdIsNull() {
            addCriterion("TASK_HIS_ID is null");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdIsNotNull() {
            addCriterion("TASK_HIS_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdEqualTo(String value) {
            addCriterion("TASK_HIS_ID =", value, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdNotEqualTo(String value) {
            addCriterion("TASK_HIS_ID <>", value, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdGreaterThan(String value) {
            addCriterion("TASK_HIS_ID >", value, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdGreaterThanOrEqualTo(String value) {
            addCriterion("TASK_HIS_ID >=", value, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdLessThan(String value) {
            addCriterion("TASK_HIS_ID <", value, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdLessThanOrEqualTo(String value) {
            addCriterion("TASK_HIS_ID <=", value, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdLike(String value) {
            addCriterion("TASK_HIS_ID like", value, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdNotLike(String value) {
            addCriterion("TASK_HIS_ID not like", value, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdIn(List<String> values) {
            addCriterion("TASK_HIS_ID in", values, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdNotIn(List<String> values) {
            addCriterion("TASK_HIS_ID not in", values, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdBetween(String value1, String value2) {
            addCriterion("TASK_HIS_ID between", value1, value2, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskHisIdNotBetween(String value1, String value2) {
            addCriterion("TASK_HIS_ID not between", value1, value2, "taskHisId");
            return (Criteria) this;
        }

        public Criteria andTaskIdIsNull() {
            addCriterion("TASK_ID is null");
            return (Criteria) this;
        }

        public Criteria andTaskIdIsNotNull() {
            addCriterion("TASK_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTaskIdEqualTo(String value) {
            addCriterion("TASK_ID =", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotEqualTo(String value) {
            addCriterion("TASK_ID <>", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdGreaterThan(String value) {
            addCriterion("TASK_ID >", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdGreaterThanOrEqualTo(String value) {
            addCriterion("TASK_ID >=", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLessThan(String value) {
            addCriterion("TASK_ID <", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLessThanOrEqualTo(String value) {
            addCriterion("TASK_ID <=", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLike(String value) {
            addCriterion("TASK_ID like", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotLike(String value) {
            addCriterion("TASK_ID not like", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdIn(List<String> values) {
            addCriterion("TASK_ID in", values, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotIn(List<String> values) {
            addCriterion("TASK_ID not in", values, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdBetween(String value1, String value2) {
            addCriterion("TASK_ID between", value1, value2, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotBetween(String value1, String value2) {
            addCriterion("TASK_ID not between", value1, value2, "taskId");
            return (Criteria) this;
        }

        public Criteria andTastStateIsNull() {
            addCriterion("TAST_STATE is null");
            return (Criteria) this;
        }

        public Criteria andTastStateIsNotNull() {
            addCriterion("TAST_STATE is not null");
            return (Criteria) this;
        }

        public Criteria andTastStateEqualTo(Integer value) {
            addCriterion("TAST_STATE =", value, "tastState");
            return (Criteria) this;
        }

        public Criteria andTastStateNotEqualTo(Integer value) {
            addCriterion("TAST_STATE <>", value, "tastState");
            return (Criteria) this;
        }

        public Criteria andTastStateGreaterThan(Integer value) {
            addCriterion("TAST_STATE >", value, "tastState");
            return (Criteria) this;
        }

        public Criteria andTastStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("TAST_STATE >=", value, "tastState");
            return (Criteria) this;
        }

        public Criteria andTastStateLessThan(Integer value) {
            addCriterion("TAST_STATE <", value, "tastState");
            return (Criteria) this;
        }

        public Criteria andTastStateLessThanOrEqualTo(Integer value) {
            addCriterion("TAST_STATE <=", value, "tastState");
            return (Criteria) this;
        }

        public Criteria andTastStateIn(List<Integer> values) {
            addCriterion("TAST_STATE in", values, "tastState");
            return (Criteria) this;
        }

        public Criteria andTastStateNotIn(List<Integer> values) {
            addCriterion("TAST_STATE not in", values, "tastState");
            return (Criteria) this;
        }

        public Criteria andTastStateBetween(Integer value1, Integer value2) {
            addCriterion("TAST_STATE between", value1, value2, "tastState");
            return (Criteria) this;
        }

        public Criteria andTastStateNotBetween(Integer value1, Integer value2) {
            addCriterion("TAST_STATE not between", value1, value2, "tastState");
            return (Criteria) this;
        }

        public Criteria andRunStateIsNull() {
            addCriterion("RUN_STATE is null");
            return (Criteria) this;
        }

        public Criteria andRunStateIsNotNull() {
            addCriterion("RUN_STATE is not null");
            return (Criteria) this;
        }

        public Criteria andRunStateEqualTo(Integer value) {
            addCriterion("RUN_STATE =", value, "runState");
            return (Criteria) this;
        }

        public Criteria andRunStateNotEqualTo(Integer value) {
            addCriterion("RUN_STATE <>", value, "runState");
            return (Criteria) this;
        }

        public Criteria andRunStateGreaterThan(Integer value) {
            addCriterion("RUN_STATE >", value, "runState");
            return (Criteria) this;
        }

        public Criteria andRunStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("RUN_STATE >=", value, "runState");
            return (Criteria) this;
        }

        public Criteria andRunStateLessThan(Integer value) {
            addCriterion("RUN_STATE <", value, "runState");
            return (Criteria) this;
        }

        public Criteria andRunStateLessThanOrEqualTo(Integer value) {
            addCriterion("RUN_STATE <=", value, "runState");
            return (Criteria) this;
        }

        public Criteria andRunStateIn(List<Integer> values) {
            addCriterion("RUN_STATE in", values, "runState");
            return (Criteria) this;
        }

        public Criteria andRunStateNotIn(List<Integer> values) {
            addCriterion("RUN_STATE not in", values, "runState");
            return (Criteria) this;
        }

        public Criteria andRunStateBetween(Integer value1, Integer value2) {
            addCriterion("RUN_STATE between", value1, value2, "runState");
            return (Criteria) this;
        }

        public Criteria andRunStateNotBetween(Integer value1, Integer value2) {
            addCriterion("RUN_STATE not between", value1, value2, "runState");
            return (Criteria) this;
        }

        public Criteria andFireTimeIsNull() {
            addCriterion("FIRE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andFireTimeIsNotNull() {
            addCriterion("FIRE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andFireTimeEqualTo(Date value) {
            addCriterion("FIRE_TIME =", value, "fireTime");
            return (Criteria) this;
        }

        public Criteria andFireTimeNotEqualTo(Date value) {
            addCriterion("FIRE_TIME <>", value, "fireTime");
            return (Criteria) this;
        }

        public Criteria andFireTimeGreaterThan(Date value) {
            addCriterion("FIRE_TIME >", value, "fireTime");
            return (Criteria) this;
        }

        public Criteria andFireTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("FIRE_TIME >=", value, "fireTime");
            return (Criteria) this;
        }

        public Criteria andFireTimeLessThan(Date value) {
            addCriterion("FIRE_TIME <", value, "fireTime");
            return (Criteria) this;
        }

        public Criteria andFireTimeLessThanOrEqualTo(Date value) {
            addCriterion("FIRE_TIME <=", value, "fireTime");
            return (Criteria) this;
        }

        public Criteria andFireTimeIn(List<Date> values) {
            addCriterion("FIRE_TIME in", values, "fireTime");
            return (Criteria) this;
        }

        public Criteria andFireTimeNotIn(List<Date> values) {
            addCriterion("FIRE_TIME not in", values, "fireTime");
            return (Criteria) this;
        }

        public Criteria andFireTimeBetween(Date value1, Date value2) {
            addCriterion("FIRE_TIME between", value1, value2, "fireTime");
            return (Criteria) this;
        }

        public Criteria andFireTimeNotBetween(Date value1, Date value2) {
            addCriterion("FIRE_TIME not between", value1, value2, "fireTime");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeIsNull() {
            addCriterion("PREVIOUS_TIME is null");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeIsNotNull() {
            addCriterion("PREVIOUS_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeEqualTo(Date value) {
            addCriterion("PREVIOUS_TIME =", value, "previousTime");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeNotEqualTo(Date value) {
            addCriterion("PREVIOUS_TIME <>", value, "previousTime");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeGreaterThan(Date value) {
            addCriterion("PREVIOUS_TIME >", value, "previousTime");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("PREVIOUS_TIME >=", value, "previousTime");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeLessThan(Date value) {
            addCriterion("PREVIOUS_TIME <", value, "previousTime");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeLessThanOrEqualTo(Date value) {
            addCriterion("PREVIOUS_TIME <=", value, "previousTime");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeIn(List<Date> values) {
            addCriterion("PREVIOUS_TIME in", values, "previousTime");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeNotIn(List<Date> values) {
            addCriterion("PREVIOUS_TIME not in", values, "previousTime");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeBetween(Date value1, Date value2) {
            addCriterion("PREVIOUS_TIME between", value1, value2, "previousTime");
            return (Criteria) this;
        }

        public Criteria andPreviousTimeNotBetween(Date value1, Date value2) {
            addCriterion("PREVIOUS_TIME not between", value1, value2, "previousTime");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeIsNull() {
            addCriterion("SCHEDULED_TIME is null");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeIsNotNull() {
            addCriterion("SCHEDULED_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeEqualTo(Date value) {
            addCriterion("SCHEDULED_TIME =", value, "scheduledTime");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeNotEqualTo(Date value) {
            addCriterion("SCHEDULED_TIME <>", value, "scheduledTime");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeGreaterThan(Date value) {
            addCriterion("SCHEDULED_TIME >", value, "scheduledTime");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("SCHEDULED_TIME >=", value, "scheduledTime");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeLessThan(Date value) {
            addCriterion("SCHEDULED_TIME <", value, "scheduledTime");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeLessThanOrEqualTo(Date value) {
            addCriterion("SCHEDULED_TIME <=", value, "scheduledTime");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeIn(List<Date> values) {
            addCriterion("SCHEDULED_TIME in", values, "scheduledTime");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeNotIn(List<Date> values) {
            addCriterion("SCHEDULED_TIME not in", values, "scheduledTime");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeBetween(Date value1, Date value2) {
            addCriterion("SCHEDULED_TIME between", value1, value2, "scheduledTime");
            return (Criteria) this;
        }

        public Criteria andScheduledTimeNotBetween(Date value1, Date value2) {
            addCriterion("SCHEDULED_TIME not between", value1, value2, "scheduledTime");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeIsNull() {
            addCriterion("EXECUTE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeIsNotNull() {
            addCriterion("EXECUTE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeEqualTo(Long value) {
            addCriterion("EXECUTE_TIME =", value, "executeTime");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeNotEqualTo(Long value) {
            addCriterion("EXECUTE_TIME <>", value, "executeTime");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeGreaterThan(Long value) {
            addCriterion("EXECUTE_TIME >", value, "executeTime");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeGreaterThanOrEqualTo(Long value) {
            addCriterion("EXECUTE_TIME >=", value, "executeTime");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeLessThan(Long value) {
            addCriterion("EXECUTE_TIME <", value, "executeTime");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeLessThanOrEqualTo(Long value) {
            addCriterion("EXECUTE_TIME <=", value, "executeTime");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeIn(List<Long> values) {
            addCriterion("EXECUTE_TIME in", values, "executeTime");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeNotIn(List<Long> values) {
            addCriterion("EXECUTE_TIME not in", values, "executeTime");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeBetween(Long value1, Long value2) {
            addCriterion("EXECUTE_TIME between", value1, value2, "executeTime");
            return (Criteria) this;
        }

        public Criteria andExecuteTimeNotBetween(Long value1, Long value2) {
            addCriterion("EXECUTE_TIME not between", value1, value2, "executeTime");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeIsNull() {
            addCriterion("NEXT_START_TIME is null");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeIsNotNull() {
            addCriterion("NEXT_START_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeEqualTo(Date value) {
            addCriterion("NEXT_START_TIME =", value, "nextStartTime");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeNotEqualTo(Date value) {
            addCriterion("NEXT_START_TIME <>", value, "nextStartTime");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeGreaterThan(Date value) {
            addCriterion("NEXT_START_TIME >", value, "nextStartTime");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("NEXT_START_TIME >=", value, "nextStartTime");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeLessThan(Date value) {
            addCriterion("NEXT_START_TIME <", value, "nextStartTime");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("NEXT_START_TIME <=", value, "nextStartTime");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeIn(List<Date> values) {
            addCriterion("NEXT_START_TIME in", values, "nextStartTime");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeNotIn(List<Date> values) {
            addCriterion("NEXT_START_TIME not in", values, "nextStartTime");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeBetween(Date value1, Date value2) {
            addCriterion("NEXT_START_TIME between", value1, value2, "nextStartTime");
            return (Criteria) this;
        }

        public Criteria andNextStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("NEXT_START_TIME not between", value1, value2, "nextStartTime");
            return (Criteria) this;
        }

        public Criteria andMessageIsNull() {
            addCriterion("MESSAGE is null");
            return (Criteria) this;
        }

        public Criteria andMessageIsNotNull() {
            addCriterion("MESSAGE is not null");
            return (Criteria) this;
        }

        public Criteria andMessageEqualTo(String value) {
            addCriterion("MESSAGE =", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageNotEqualTo(String value) {
            addCriterion("MESSAGE <>", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageGreaterThan(String value) {
            addCriterion("MESSAGE >", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageGreaterThanOrEqualTo(String value) {
            addCriterion("MESSAGE >=", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageLessThan(String value) {
            addCriterion("MESSAGE <", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageLessThanOrEqualTo(String value) {
            addCriterion("MESSAGE <=", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageLike(String value) {
            addCriterion("MESSAGE like", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageNotLike(String value) {
            addCriterion("MESSAGE not like", value, "message");
            return (Criteria) this;
        }

        public Criteria andMessageIn(List<String> values) {
            addCriterion("MESSAGE in", values, "message");
            return (Criteria) this;
        }

        public Criteria andMessageNotIn(List<String> values) {
            addCriterion("MESSAGE not in", values, "message");
            return (Criteria) this;
        }

        public Criteria andMessageBetween(String value1, String value2) {
            addCriterion("MESSAGE between", value1, value2, "message");
            return (Criteria) this;
        }

        public Criteria andMessageNotBetween(String value1, String value2) {
            addCriterion("MESSAGE not between", value1, value2, "message");
            return (Criteria) this;
        }

        public Criteria andBeanIdIsNull() {
            addCriterion("BEAN_ID is null");
            return (Criteria) this;
        }

        public Criteria andBeanIdIsNotNull() {
            addCriterion("BEAN_ID is not null");
            return (Criteria) this;
        }

        public Criteria andBeanIdEqualTo(String value) {
            addCriterion("BEAN_ID =", value, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdNotEqualTo(String value) {
            addCriterion("BEAN_ID <>", value, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdGreaterThan(String value) {
            addCriterion("BEAN_ID >", value, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdGreaterThanOrEqualTo(String value) {
            addCriterion("BEAN_ID >=", value, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdLessThan(String value) {
            addCriterion("BEAN_ID <", value, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdLessThanOrEqualTo(String value) {
            addCriterion("BEAN_ID <=", value, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdLike(String value) {
            addCriterion("BEAN_ID like", value, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdNotLike(String value) {
            addCriterion("BEAN_ID not like", value, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdIn(List<String> values) {
            addCriterion("BEAN_ID in", values, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdNotIn(List<String> values) {
            addCriterion("BEAN_ID not in", values, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdBetween(String value1, String value2) {
            addCriterion("BEAN_ID between", value1, value2, "beanId");
            return (Criteria) this;
        }

        public Criteria andBeanIdNotBetween(String value1, String value2) {
            addCriterion("BEAN_ID not between", value1, value2, "beanId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}